import type { FC } from 'react';
import Octicons from '@expo/vector-icons/Octicons';
import IconText from '../iconText';
import { useDetails } from '../hooks';

type LocationProps = {

}

const Location: FC<LocationProps> = (props) => {
  const { location } = useDetails();

  return (
    <IconText
      textFlex={1}
      text={location}
      fontSize={14}
      iconWidth={16}
      fontColor="#000"
    >
      <Octicons
        name="location"
        size={16}
        color="#666"
      />
    </IconText>
  );
}

export default Location;